﻿using System;

namespace RockBus.Logging.Interfaces
{
    public class MessageData
    {
        public const string Format = "{0} from {1}: Action: {2}; CorrelationId: {3}; {4}; {5}";

        public MessageData(Guid correlationId, string action, string receiveAddress, string destinationAddress, string text, MessageEventEnum messageEvent, LogLevelEnum logLevel)
        {
            this.CorrelationId = correlationId;
            this.Action = action;
            this.ReceiveAddress = receiveAddress;
            this.DestinationAddress = destinationAddress;
            this.Text = text;
            this.MessageEvent = messageEvent;
            this.LogLevel = logLevel;
        }

        public Guid CorrelationId { get; private set; }

        public string Action { get; private set; }

        public string ReceiveAddress { get; private set; }

        public string DestinationAddress { get; private set; }

        public string Text { get; private set; }

        public MessageEventEnum MessageEvent { get; private set; }

        public LogLevelEnum LogLevel { get; private set; }
    }
}